import { getHttp, deleteHttp, postHttp, putHttp } from '../utils/http'
import { GETHttp, POSTHttp } from '../utils/https'

//获取知识小册列表
export const getKnowledge = async (params) => {
  return await getHttp('/api/get_knowledge', params)
}

//网络接口获取知识小册
export const GETKnowledge = async (params) => {
  return await getHttp('/api/knowledge', params)
}

//删除小册列表
export const delKnowledge = async (params) => {
  return await deleteHttp('/api/del_knowledge', params)
}
//修改小册列表
export const setKnowledge = async (params) => {
  return await postHttp('/api/set_knowledge', params)
}
//新建小册列表
export const newKnowledge = async (params) => {
  return await putHttp('/api/new_knowledge', params)
}
//编辑小册列表
export const editKnowledge = async (params) => {
  return await postHttp('/api/edit_knowledge', params)
}
//回显小册列表
export const echoKnowledge = async (params) => {
  return await getHttp('/api/echo_knowledge', params)
}
//新建知识小册章节
export const newSection = async (params) => {
  return await putHttp('/api/new_Section', params)
}
//获取知识小册章节
export const getSection = async (params) => {
  return await getHttp('/api/get_Section', params)
}
